﻿namespace NumericalSolution {
  class Element {
    private Node[] m_nodes;
    private int m_number;
    private int m_numNodesInAnElement;

    public Element(int numNodesInAnElement) {
      m_nodes = new Node[numNodesInAnElement];
      for (int i = 0; i < numNodesInAnElement; i++) {
        m_nodes[i] = new Node();
      }
      m_numNodesInAnElement = numNodesInAnElement;
    }

    public int Number {
      get { return m_number; }
      set { m_number = value; }
    }

    public int NumberOfNodesInAnElement {
      get { return m_numNodesInAnElement; }
    }

    public Node[] Node {
      get { return m_nodes; }
    }
  }
}
